body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: .8125rem;
  line-height: 1.4286;
}

*,
::after,
::before {
  box-sizing: border-box;
}

.fbdocs-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;

  .fbdocs-wrapper--header {
    position: fixed;
    left: 0;
    right: 0;
    padding: 0 20px 0 20px;

    .fbdocs-title {
      width: 240px;
      display: flex;
      align-items: center;
      height: 64px;
      overflow: hidden;
      margin: 0;
      font-size: 20px;
      font-weight: normal;
      position: relative;

      img {
        display: block;
        height: 24px;
        margin: 0 6px 0 0;
      }

      &::after {
        position: absolute;
        right: 0;
        width: 1px;
        height: 22px;
        top: 50%;
        margin-top: -11px;
        content: '';
      }
    }

  }
}

h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  margin-bottom: .5rem;
  font-family: inherit;
  font-weight: 400;
  line-height: 1.2;
  color: inherit;
}

h2 {
  font-size: 1.5rem;
  line-height: 2;
}

h3 {
  line-height: 1.875rem;
  font-size: 1.125rem;
}

.fbdocs-wrapper--content {
  margin-top: 80px;
}

.fbdocs-detail-wrapper {
  width: 85%;
  min-width: 300px;
  max-width: 960px;
  margin: 0 auto;
}

.fbdocs-mode {
  display: inline-flex;
  flex-direction: row;
  background: #EFF5FF;
  border-radius: 17px;
  color: #6080AD;
  margin: 0 16px;

  .mode--item {
    cursor: pointer;
    margin: 3px;
    border-radius: 15px;

    span {
      line-height: 24px;
      padding: 0 14px;
      display: block;
    }

    &.fb-state-selected {
      color: #388fff;

      background: rgba(246, 250, 255, 1);
      box-shadow: 0 4px 18px 0 rgba(2, 75, 193, 0.20);
    }
  }
}

tr.fd-state-selected {
  background: #ffff00;
}


.fbdocs-utils-fill {
  flex: 1 1 0;
}

.fbdocs-utils-flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}



/* IE浏览器下隐藏下拉按钮 */
select::-ms-expand {
  display: none;
}

/* 定义隐藏下拉框默认样式及图片覆盖下拉按钮 */
.fbdocs-select-wrapper {
  position: relative;
}

.fbdocs-select,
.fbdocs-search-wrapper,
.fbdocs-search {
  width: 140px;
  height: 28px;
  padding: 3px 8px;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  position: relative;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;

}

.fbdocs-select::after {
  position: absolute;
  right: 10px;
  top: 50%;
  margin-top: -0.25rem;
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: .125rem;
  vertical-align: .125rem;
  content: "";
  border-top: .5rem solid;
  border-right: .25rem solid transparent;
  border-bottom: 0;
  border-left: .25rem solid transparent;
}

.fbdocs-dropdown {
  display: none;
  width: 100%;
  top: 100%;
  left: 0;
  position: absolute;
  overflow: auto;
  background: #fff;
  z-index: 9;
  margin-top: -1px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .15);
  border-radius: 2px;

  .list-group {
    padding: 0;
    margin: 0;
  }

  .list-group .list-group-item {
    display: flex;
    align-items: center;
    padding: .375rem .875rem 0.375rem 1rem;
    border: 0;
    color: rgba(0, 0, 0, .85);

    &:hover {
      background-color: #E7F1FF;
      color: rgba(0, 0, 0, .85);
    }

    &.item-grouped {
      font-weight: 600;
      padding: .375rem .5rem;
    }

    &.fd-state-selected {
      background-color: #E7F1FF;
      color: rgba(0, 0, 0, .85);
    }
  }
}

// 查询
.fbdocs-search-wrapper {
  padding: 0;
  display: flex;
  align-items: center;
  width: 240px;

  &:hover {
    border-color: #529DFF;

    .search-btn {
      color: #529DFF;
    }
  }

  .fbdocs-select-wrapper {
    background: #f7f8fb;

    .fbdocs-select {
      height: 26px;
      width: 80px;
      border: none;
    }

  }

  .fbdocs-search {
    height: 26px;
    width: 1%;
    flex: 1 1 0;
    border: none;
    outline: none;
  }

  .clear-search {
    cursor: pointer;
    display:none;
    position: absolute;
    right: 39px;
    top: 50%;
    border-radius: 9px;
    width: 16px;
    text-align: center;
    background: #fff;
    z-index: 100;
    border: 1px solid #ddd;
    color: rgba(0, 0, 0, .25);
    height: 16px;
    margin-top: -8px;

    &::before,
    &::after {
      position: absolute;
      content: ' ';
      background-color: #ddd;
      left: 7px;
      width: 1px;
      height: 10px;
      top: 2px;
    }

    &::before {
      transform: rotate(45deg);
    }

    &::after {
      transform: rotate(-45deg);
    }
  }

  .search-btn {
    cursor: pointer;
    padding: 0 8px;
    font-size: 12px;
    color: rgba(0, 0, 0, .25);

    &:hover {
      color: #529DFF;
    }
  }
}

.fp-docs-demo-wrapper {
  display: flex;
  align-items: center;

  &+.fp-docs-demo-wrapper {
    margin: 8px 0 0;
  }

  .fp-docs-demo {
    display: block;
    width: 14px;
    height: 14px;
    background: #A8ADB8;
    border-radius: 4px;
    margin: 0 0 0 auto;
  }
}
